Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(controller): use a copied object to update because of mutation #2466

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Feb 10, 2023

Signed-off-by: Derek Wang whynowy@gmail.com

Controller-runtime client.Update() will mutate the object, which makes the following up Status.Update() do nothing - it didn't cause any issue because there are couple of reconciliations, eventually the Status gets updated correctly.

Thanks @dfarr @bilalba for reporting the issue.

Checklist:

Signed-off-by: Derek Wang <whynowy@gmail.com>
@whynowy whynowy requested a review from sarabala1979 February 11, 2023 00:04
@dfarr
Copy link
Member

dfarr commented Mar 1, 2023

Looks good! Very clean solution

@whynowy whynowy merged commit f28cde2 into argoproj:master Mar 3, 2023
@whynowy whynowy deleted the sdd branch March 3, 2023 07:36
jwillker pushed a commit to jwillker/argo-events that referenced this pull request Mar 29, 2023
…rgoproj#2466)

Signed-off-by: Derek Wang <whynowy@gmail.com>
Signed-off-by: JohnWillker <frazao.jhonn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants